#ifndef _KC_CONNCOMMON_H__KC_
#define _KC_CONNCOMMON_H__KC_

#include <string>

namespace kc_sf
{
	enum CommResult
	{
		Success,
		Failure,
		Timeout
	};

	/*
	 * Interfejs dla klasy do komunikacji np.
	 * za pomocą protokołu TCP
	 */
	class CommCommon
	{
		public:

			virtual ~CommCommon () { }

			virtual CommResult sendData( const std::string &what, int timeout_s ) = 0;
			virtual CommResult recvData( std::string &to, const std::string &until_str, int timeout_s ) = 0;
			virtual CommResult recvData( std::string &to, int timeout_s, unsigned long how_many_bytes = -1 ) = 0;
	};
}

#endif // _KC_CONNCOMMON_H__KC_
